package com.chushouya.common.constant;

public class ProductRedisKeys {

    /**
     * 缓存时间
     */
    public static final long CACHE_TIME = 60 * 60 * 24;

    /**
     * 产品缓存前缀
     */
    public static final String PRODUCT_KEYS_PREFIX = "cache_product";
    /**
     * 产品列表缓存
     */
    public static final String PRODUCT_PAGE_RESULT = PRODUCT_KEYS_PREFIX + ":page:{}_{}_{}_{}_{}"; // category_brand_series_page_size

    public static final String PRODUCT_PAGE_CACHED_ID = PRODUCT_KEYS_PREFIX + ":page:cached_ids";

    /**
     * 评估信息缓存
     */
    public static final String PRODUCT_EVALUATE_DATA = PRODUCT_KEYS_PREFIX + ":e_data";

    /**
     * SKU信息缓存
     */
    public static final String SKU_EVALUATE_DATA = PRODUCT_KEYS_PREFIX + ":sku_e_data";

    /**
     * 热门产品缓存
     */
    public static final String PRODUCT_HOT = PRODUCT_KEYS_PREFIX + ":hot";

    /**
     * 产品系列缓存
     */
    public static final String PRODUCT_SERIES = PRODUCT_KEYS_PREFIX + ":series";

    /**
     * 产品提示缓存
     */
    public static final String PRODUCT_TIPS = PRODUCT_KEYS_PREFIX + ":tips";

    /**
     * 禁止删除的产品ID ignore_product_id_list
     */
    public static final String IGNORE_PRODUCT_ID_LIST = "ignore_product_id_list";

}
